class Animal:
    def __init__(self, name):
        self.name = name

    def speak(self):
        return f"{self.name} makes a sound"


class Dog(Animal):
    def __init__(self, name, breed):
        # 使用super()调用父类的__init__方法
        super().__init__(name)
        self.breed = breed

    def speak(self):
        # 调用父类的speak方法，并添加额外的信息
        return f"{super().speak()} and {self.name} barks"


# 创建Dog实例
dog = Dog("Buddy", "Golden Retriever")
print(dog.speak())  # 输出: Buddy makes a sound and Buddy barks